package com.ruoyi.zhjd.laboratory.modules.marshallStabilityNew.service.impl;


import cn.hutool.json.JSONObject;
import com.ruoyi.zhjd.laboratory.modules.marshallStabilityNew.entity.MarshallStabilityNewResEntity;
import com.ruoyi.zhjd.laboratory.modules.marshallStabilityNew.mapper.MarshallStabilityNewResMapper;
import org.springframework.stereotype.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Map;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.metadata.IPage;


import com.ruoyi.zhjd.laboratory.modules.marshallStabilityNew.service.MarshallStabilityNewResService;


@Service("marshallStabilityNewResService")
public class MarshallStabilityNewResServiceImpl extends ServiceImpl<MarshallStabilityNewResMapper, MarshallStabilityNewResEntity> implements MarshallStabilityNewResService {

    @Autowired
    private MarshallStabilityNewResMapper marshallStabilityNewResMapper;

//    @Autowired
//    private BaseServiceComponent baseServiceComponent;

    /**
     * 列表
     */
    @Override
    public IPage<JSONObject> queryPage(Map<String, Object> params) {
//        IPage<MarshallStabilityNewResEntity> page = baseServiceComponent.getPage(params, MarshallStabilityNewResEntity.class);
        return marshallStabilityNewResMapper.queryPage(null,params);
    }

    /**
     * 信息
     * @return MarshallStabilityNewResEntity
     */
    @Override
    public MarshallStabilityNewResEntity getInfo(String id){
        return getById(id);
    }

    /**
     * 保存
     */
    @Override
    public void saveData(MarshallStabilityNewResEntity marshallStabilityNewRes){
        save(marshallStabilityNewRes);
    }

    /**
     * 修改
     */
    @Override
    public void updateData(MarshallStabilityNewResEntity marshallStabilityNewRes){
        updateById(marshallStabilityNewRes);
    }

    /**
     * 删除单条数据
     * @param id
     */
    @Override
    public void deleteOneData(String id){
        removeById(id);
    }

    /**
     * 删除
     */
    @Override
    public void deleteData(List<String> ids){
        removeByIds(ids);
    }
}
